<template>
  <van-cell>
    <div class="house-item">
      <div class="house-img"><img :src="`http://liufusong.top:8080${item.houseImg}`" alt=""></div>
      <div class="house-info">
        <h4>{{item.title}}</h4>
        <p class="size">{{item.desc}}</p>
        <div><span class="label" v-for="(items,index) in item.tags" :key="index">{{items}}</span></div>
        <div class="price"><span class="num">{{item.price}}</span><span class="txt">元/月</span></div>
      </div>
    </div>
  </van-cell>
</template>

<script>
export default {
  props:{
    item:{
      type:Object
    }
  }
}
</script>

<style lang="less" scoped>
.house-item{
  width: 100%;
  height: 120px;
  display: flex;
  border-bottom: 1px solid #e5e5e5;
  .house-img{
    padding-top: 5px;
    margin-right: 10px;
    img{
      width: 120px;
      height: 90px;
    }
  }
  .house-info{
    h4{
      font-size: 15px;
      line-height: 18px;
      margin: 0;
    }
    .size{
      margin: 0;
      height: 23px;
      font-size: 12px;
      color: #afb2b3;
    }
    .label{
      display: inline-block;
      padding: 3px;
      margin-right: 5px;
      border-radius: 3px;
      text-align: center;
      line-height: 15px;
      font-size: 12px;
      background-color: #e1f5f8;
      color: #39becd;
    }
    .price{
      height: 23px;
      color: #fa5741;
      .num{
        font-size: 18px;
        font-weight: 700;
        margin-right: 3px;
      }
      .txt{
        font-size: 12px;
      }
    }
  }
}
</style>